import os

from aiogram.types import InlineKeyboardMarkup, InlineKeyboardButton as Button, WebAppInfo


def create_webapp():
    webapp_url = os.getenv('WEB_APP_URL')
    webapp_info = WebAppInfo(url=webapp_url)
    keyboard = InlineKeyboardMarkup(
        inline_keyboard=[
            [Button(text='Туры', web_app=webapp_info)]
        ]
    )
    return keyboard


def create_my_tours():
    keyboard = InlineKeyboardMarkup(
        inline_keyboard=[
            [Button(text='Мои туры', callback_data='my_tours')]
        ]
    )
    return keyboard


def create_return():
    keyboard = InlineKeyboardMarkup(
        inline_keyboard=[
            [Button(text='↩︎', callback_data='return')]
        ]
    )
    return keyboard
